﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entities
{
    public class TinTuc
    {
        // properties
        private int maTT;

        private String tieuDe;

        private String noiDung;

        private String tomLuoc;

        private DateTime ngayTao;

        private String linkImage;

        private String tacGia;

        private Boolean hienThi;

        private Boolean tinNoiBat;

        // Setters and Getters

        public int MaTT
        {
            get { return maTT; }
            set { maTT = value; }
        }
        public String TieuDe
        {
            get { return tieuDe; }
            set { tieuDe = value; }
        }
        public String NoiDung
        {
            get { return noiDung; }
            set { noiDung = value; }
        }
        public String TomLuoc
        {
            get { return tomLuoc; }
            set { tomLuoc = value; }
        }
        public DateTime NgayTao
        {
            get { return ngayTao; }
            set { ngayTao = value; }
        }
        public String LinkImage
        {
            get { return linkImage; }
            set { linkImage = value; }
        }
        public String TacGia
        {
            get { return tacGia; }
            set { tacGia = value; }
        }
        public Boolean HienThi
        {
            get { return hienThi; }
            set { hienThi = value; }
        }
        public Boolean TinNoiBat
        {
            get { return tinNoiBat; }
            set { tinNoiBat = value; }
        }
        // Constructors

        public TinTuc()
        {

        }

        public TinTuc(int maTT, String tieuDe, String noiDung, String tomLuoc,
           DateTime ngayTao, String linkImage, String tacGia, Boolean hienThi,
           Boolean tinNoiBat)
        {
            this.maTT = maTT;
            this.tieuDe = tieuDe;
            this.noiDung = noiDung;
            this.tomLuoc = tomLuoc;
            this.ngayTao = ngayTao;
            this.linkImage = linkImage;
            this.tacGia = tacGia;
            this.hienThi = hienThi;
            this.tinNoiBat = tinNoiBat;
        }
    }
}
